using UnityEngine;

public class LevelConfiguration : MonoBehaviour
{
	public Transform start;

	public static LevelConfiguration instance
	{
		get;
		private set;
	}

	private void Awake()
	{
		if (instance != null && instance != this)
		{
			UnityEngine.Object.Destroy(base.gameObject);
		}
		instance = this;
	}

	public void Configure(GameObject o)
	{
		SetStartPosition(o.transform);
	}

	public void SetStartPosition(Transform vehicle)
	{
		vehicle.position = start.position;
		vehicle.rotation = start.rotation;
	}
}
